#import "NSString+SRAdditions.h"


@implementation NSString (NSStringSRAdditions)

-(BOOL)containsString:(NSString *)string {
    return [self rangeOfString:string options:NSCaseInsensitiveSearch].location != NSNotFound;
}

-(BOOL)matchesExpression:(NSString *)regularExpression {
    NSPredicate *regExPredicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regularExpression];
    return [regExPredicate evaluateWithObject:self];
}


@end
